home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / libraries / nonvolatile.inc < prev    next >
Text File  |  1998-06-24  |  487b  |  29 lines

  1. include "inc/exec/types.inc";
  2. include "inc/exec/nodes.inc";
  3.  
  4. struct NVInfo is
  5.   nvi_MaxStorage:ulong;
  6.   nvi_FreeStorage:ulong;
  7. ;
  8.  
  9. struct NVEntry is
  10.   nve_Node:MinNode;
  11.   nve_Name:ulong;
  12.   nve_Size:ulong;
  13.   nve_Protection:ulong;
  14. ;
  15.  
  16. def NVEB_DELETE = 0;
  17. def NVEB_APPNAME = 31;
  18.  
  19. def NVEF_DELETE = (1<<NVEB_DELETE);
  20. def NVEF_APPNAME = (1<<NVEB_APPNAME);
  21.  
  22. def NVERR_BADNAME = 1;
  23. def NVERR_WRITEPROT = 2;
  24. def NVERR_FAIL = 3;
  25. def NVERR_FATAL = 4;
  26.  
  27. def SizeNVData(DataPtr) = ((DataPtr[-1])-4);
  28.  
  29.